<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ page import="com.dimeina.service.*" %>
<%@ page import="com.dimeina.service.impl.*" %>
<%@ page import="com.dimeina.vo.*" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>商品信息管理</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
<style type="text/css">
		.gridview {
			 border: 1px solid #1E82D1;
			 border-collapse: collapse;
			 width: 100%;
			 font-size:16pt;
		}
		
		.gridview th {
			height: 30px;
			line-height: 30px;
			background: #1E82D1;
			border: 1px solid #1E82D1;
			color:#fff;
			font-size:20px;
		}
		
		.gridview td {
			height:28px;
			border: 1px solid #1E82D1;
			text-align: center;
		}
		
		.gridview .btn{
			height: 30px;
			line-height:30px;
			width: 80px;
			display: inline-block;
			background: #1E82D1;
			color:#fff;
			text-align: center;
			text-decoration: none;
			border-radius: 15px;
		}
	</style>
  </head>
  
  <body>
  	<table class="gridview">
  		<tr>	
  			<th>管理员&nbsp;&nbsp;账号</th>
  			<th>管理员&nbsp;&nbsp;密码</th>
  		</tr>
  		<%
  			UserServiceImpl userServiceImpl = new UserServiceImpl();
  			List<User> userList = userServiceImpl.findAllUnameUpwd();
  			for(User user : userList) { %>
  			<tr>
  				<td><%= user.getUserName() %></td>
  				<td><%= user.getUserPassword() %></td>
  			</tr>
  		<% } %>
  	</table>
  </body>
</html>
